import request from '@/utils/request'

// 查询评价表列表
export function listComments(query) {
  return request({
    url: '/comments/comments/list',
    method: 'get',
    params: query
  })
}

// 查询评价表详细
export function getComments(id) {
  return request({
    url: '/comments/comments/' + id,
    method: 'get'
  })
}

// 新增评价表
export function addComments(data) {
  return request({
    url: '/comments/comments',
    method: 'post',
    data: data
  })
}

// 修改评价表
export function updateComments(data) {
  return request({
    url: '/comments/comments',
    method: 'put',
    data: data
  })
}
export function productList() {
  return request({
    url: 'comments/comments/productList',
    method: 'get'
  })
}

// 删除评价表
export function delComments(id) {
  return request({
    url: '/comments/comments/' + id,
    method: 'delete'
  })
}
